<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
 <jsp:include page="../restab.jsp" flush="true" />
</head>
<body>
     <jsp:include page="../header.jsp" flush="true" />
        <div id = "body"> 
        <form:form method="post" action="addorder" commandName="orderDto" modelAttribute="orderDto">
    <table>
        <th>订单生成</th>
        <tr>
            <td>产品编号:</td>
            <td><form:input path="productId" readonly="true" value="${orderDto.productId}" /></td>
        </tr>
        <tr>
            <td>产品名称:</td>
            <td><form:input path="title" readonly="true" value="${orderDto.title}" /></td>
        </tr>
       <tr>
            <td>折扣价:</td>
            <td><form:input path="discount" readonly="true" value="${orderDto.discount}" /></td>
        </tr>
       <tr>
            <td>数量:</td>
            <td><form:input path="quantity" type="number" value="${orderDto.quantity}" min="1" max="${orderDto.maxQuantity}" /></td>
        </tr>
       
       <tr>
            <td>
                <input type="submit" value="确认下单" />
            </td>
        </tr>
    </table>
</form:form>
    	</div>
    	
</body>
</html>